import request from '@/utils/request'

export function fetchDataGovernanceList(data) {
  return request({
    url: '/system/datagovernance/DataGovernance/list',
    method: 'post',
    data
  })
}

export function getDataGovernance(id) {
  return request({
    url: '/system/datagovernance/DataGovernance/detail/' + id,
    method: 'get'
  })
}

export function createDataGovernance(data) {
  return request({
    url: '/system/datagovernance/DataGovernance/add',
    method: 'post',
    data
  })
}

export function updateDataGovernance(data) {
  return request({
    url: '/system/datagovernance/DataGovernance/update',
    method: 'post',
    data
  })
}

export function deleteDataGovernance(ids) {
  return request({
    url: '/system/datagovernance/DataGovernance/delete',
    method: 'post',
    data: { ids }
  })
}
//获取数据表
export function getTables(data) {
  return request({
    url: '/system/metadata/table/tableList',
    method: 'post',
    data
  })
}


